package cc.vv.btpartyjob.partyservice.delegate

import android.widget.EditText
import cc.vv.baselibrary.view.BaseTopBarView
import cc.vv.btpartyjob.partyservice.R
import cc.vv.mvp.delegate.BaseAppDelegate

/**
 * 发布留言托管类
 * Created by Chen.qi on 2018/10/24.
 */
class SubmitHuiFuActivityDelegate : BaseAppDelegate() {


    override fun initWidget() {

    }

    override fun initLayoutRes(): Int {
        return R.layout.activity_submit_huifu
    }

    /**设置标题title*/
    fun setTopBarTitle(topBarTitle: String) {
        val titleBar = getView<BaseTopBarView>(R.id.btv_aslHF_topBar)
        titleBar?.setTitle(topBarTitle)
    }


    /**设置标题右边按钮点击事件*/
    fun setTitleBackBtnOnClick(event: BaseTopBarView.EventInterface) {
        val titleBar = getView<BaseTopBarView>(R.id.btv_aslHF_topBar)
        titleBar?.setEventInterface(event)
    }


    /**
     * 获得内容
     */
    fun getPJContent(): String {
        val tvTeChang = getView<EditText>(R.id.et_aslHF_content)
        return tvTeChang?.text.toString().trim()
    }


}